package edu.sctu.practice.class02.Wangpeng.Test1;

/**
 * Created by wp on 2015/11/18.
 */
import java.awt.*;
import java.applet.*;
public abstract class Shape {
    public int x,y;
    public int width,height;

    public Shape(int x1,int y1,int width1,int height1){
        x=x1;
        y=y1;
        width=width1;
        height=height1;
    }

    abstract double getArea();
    abstract double getPerimeter();
}
